import io from 'socket.io-client'

import type { App } from 'vue'

export default {
  install: (app: App, config: any) => {
    const socket = io(config.connection, config.options)
    // app.config.globalProperties.$socket = socket
    app.provide('socket', socket)
  }
}
